package com.ktjy.mapper;

import com.ktjy.pojo.StorageRecord;
import com.ktjy.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StorageRecordMapper {
    public List<StorageRecord> selectList(
            @Param("supplierId") Integer supplierId,
            @Param("payStatus") Integer payStatus,
            @Param("goodsName") String goodsName
    );


    public List<StorageRecord> selectSupplierIdArray(@Param("supplierIds") Integer [] supplierIds);
    public List<StorageRecord> selectSupplierIdList(@Param("supplierIds") List<Integer> supplierIds);
    public List<StorageRecord> selectSupplierIdMap(Map<String,Object> supplierIds);

    int update1(Supplier supplier);

    //分页
    public List<StorageRecord> selectPageStorageRecordList(
            @Param("pageBegin1") Integer pageBegin1,
            @Param("pageSize1") Integer pageSize1
    );

    public List<Supplier> selectPageSupplierList(
            @Param("pageBegin2") Integer pageBegin2,
            @Param("pageSize2") Integer pageSize2
    );
}
